PackageConfig: Fix automatic component detection