added error catch if no .gitconfig exists

This commit fixes issue #536

It checks if .gitconfig exists in the user's home directory before checking remotes. If no .gitconfig is present, it throws an error.