Use before_install instead of before_script

Since some of the commands may fail, and before_script do not allow fail