fix up 'bundle_internal' for external resources