Moving conditional travis env check to .travis.yml