fix git-prompt for newer homebrew's git