Fix `parse_git_branch` stdout