Add local.branch.current.tag to get the tag if any

This will return the tag only if the branch is a detached HEAD and if
there is a tag.

See
http://stackoverflow.com/questions/18659425/get-git-current-branch-tag-name