more portable way to get tracking branch name