Fixed issue with renaming non-existant files.