Fixed renaming a file into itself edge case