use $XDG_CONFIG_HOME/git/config if available

Newer git versions support $XDG_CONFIG_HOME/git/config, besides ~/.gitconfig.

This patch fallsback to $XDG_CONFIG_HOME/git/config if ~/.gitconfig does not exist, just like the git binaries.