fixing before_install script