Changed how packages are determiend to be installed.