create tempfiles in the destination directory to avoid cross-filesystem issues
Merge pull request #77 from raizyr/master

os.Rename cross-filesystem issue alternative solution