Fix for #1966, use the preferred-install from the rootPackage

use the preferred-install from the rootPackage config to install the dependencies.