Fix up path-cleanup in git_path() properly