fixed move file constraint of existing destination; added creation of
temp directories to be safe