Adding additional logic to the GitInfo inline script to determine 'current' branch if the current commit is a detached HEAD.