The right way to programatically find the name of the current branch