packager.sh: missing function added