Fix bug in travis for checking branch and tag