regen-packages.sh - used for package dir regeneration