Adjust buildenv package to support easy repacking.

Calling buildenv package TYPE with no target path will now repack
the files in place in the TYPE directory.