fix git_ps1 on mac