re-arranging before_install commands to try to get travis.ci working