Use C<update -d> instead of checkout after import, added fixes by Paul Egan <paulegan@mail.com> for XMLin and fixing working directory.