fix git current branch detection in git shortcut functions