Update Travis Ci to use before_install

It's before_install that's supposed to get the environment for the build up and ready. before_script is supposed to be used before testing begins. This is according to http://about.travis-ci.org/docs/user/build-configuration/