pkgutil --expand may yield the component as an already-expanded directory rather than an archived file; handle both. List the expanded contents in the error message if the layout is unexpected.
pkgutil --expand may yield the component as an already-expanded directory rather than an archived file; handle both. List the expanded contents in the error message if the layout is unexpected.