Add __git_ps1() to PS1 only if that function exists on that system.