parse_git_branch update: supporting different git versions