Factor our cabal_install/cabal_install_if_needed