Fix file move under Windows.

Under Windows, renameTo will fail if the destination file already exists.
Deleting the destination first fixes the issue.