Fix bug when renaming file (only case changes)