Check whether we are actually in a git repo before modifying prompt