Also port pre_install steps to .travis-pre-install.sh