updates to if statement in travis.yml