Fix if statement in .travis.yml