Fixed find current branch name
Fixed find current branch name

When multiple branches are located on the same commit-id the previous solution could point to a different branch.
This now uses the correct way to find which one is the current branch.

Reference: http://stackoverflow.com/questions/6245570/how-to-get-current-branch-name-in-git

harbur/captain,harbur/captain