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

vaidyanathanms/votca.csg,Pallavi-Banerjee21/votca.csg,vaidyanathanms/votca.csg,vaidyanathanms/votca.csg,Pallavi-Banerjee21/votca.csg,Pallavi-Banerjee21/votca.csg,vaidyanathanms/votca.csg,Pallavi-Banerjee21/votca.csg,Pallavi-Banerjee21/votca.csg,vaidyanathanms/votca.csg,Pallavi-Banerjee21/votca.csg