test for __git_ps1 before adding it to the prompt