[TASK] Fix Travis build script

Note: this is an attempt, it may need to be reverted.