Call cleanworkdir method before running hg clone if the dir is left in a unsafe state