refactoring script in travis.yml to get builds to pass.