fixed git branch parsing