Make travis.yml more robust.