Ensure that there is a __git_ps1 defined by trying different methods of setting it. Methods seems
to vary depending on git version.
Setting titles myself.