Created function to load package.list from proper directories.  There can be multiple targets if TEMPLATE_FLAVOR and sub flavors are defined.  All package.list files are kept within each flavor directory

Refactored some code to allow above to reduce duplication of code