Update the build script for travis ci