Simplify getting branch name