config: make XDG tests pass on a machine with one

If the user running the tests has a git config file in the XDG
location, the tests would fail.