Bug fix: can't rename a file on Windows if the target exists.