Fixed git-ps1 script after decent review.