Fixed git branch parsing