Fixed rename on Windows so it doesn't delete if renamed to self.
Authored by: dwarren 2019-11-02
Parent: [r9699]
Child: [r9701]