Use a before script instead of stuffing everything in .travis.yml