fix metapackage detection