detect if __git_ps1 has been defined