Simplify ExternalModuleEnumerator.process_package()

Remove much of the crutf originally from the awk script, which needed to
do much more than process_package() has to.