Simplify `#current_branch_name`

Also makes it faster by ~0.01s, though hardly
noticeable.