Fixed a minor bug with the .gitconfig file and added a check for existing config files