Rework Travis main build script