Travis: move some actions to before_install.

Seems a beter spot.