Actually, we might be able to use some type of caching system for this. The admin would need to manually rebuild it, but basically it would do a scan and build a cache file of all scripts/templates that have a modded counterpart.
Something to chew on...