use better method of detemining git branch name