fixed string-match error in git branch function.