functions_common: reworked internal check for packages
functions_common: reworked internal check for packages

richardjgowers/csg,richardjgowers/csg,richardjgowers/csg,richardjgowers/csg,richardjgowers/csg