Fix a small branch in get_git_branch_name if there are more than 1 branch