git: reduce spawning for rev-parse --git-path