Only exclude base packages in getPackageDependencies