do not let git_path clobber errno when reporting errors