packager.sh: more consistent code