make package.sh more generic

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>