devscript: support pkg bundles (pkg is a dir)