Check for local file name clash before local renaming.

Return a proper error message in case.