Fix error where gitconfig ran everytime

Error was that ~/.gitconfig was a string and was unrecognized as a file.