completion: Better __git_ps1 support when not in working directory