test if __git_ps1 is a funciton first