compat tests: honour PATH environment variable in run_git()
Copy PATH into the environment used by subprocess.Popen().
This makes it possible to use Git binaries installed in non-standard
locations, such as ~/bin. And it allows running compat tests on OpenBSD,
where "git" sits in /usr/local/bin by default, and where /usr/local/bin
is not in the default PATH of the shell.