Check if __git_ps1 function exists.