check whether the branch is 'master' when returning tagname