Fixed build script for Travis CI