build: Tolerate building from a git checkout, but with git not installed.