Get head branch more reliably in git prompt