Fix __git_ps1_function to handle branch names containing forward slashes