Getting current branch differently

this should fix the issue with @{-1}