improve build script and .travis.yml