Use undo options only in vim > 703.
Make sure __git_ps1 exists.