changed package-map logic to not use grains.filter_by