Fix a pathological case in git detecting proper renames