Rename file and remove old copy.