Pkg: `git config --global` shouldn't try to find a .git directory.

If called with `dir=<dir>` this was failing since the commands to
configure the git directories couldn't find a .git but global config
doesn't require a .git directory.