Windows does not guarantee atomic overriding of files with rename. Deleting original before replacing.