move installation of packages in before_install to not install more than once