Update bundle unpacking code; add -T option to select temporary directory.

This bundle unpacking code is another candidate to refactoring into
a `mw-ocg-common` package.