If I'm understanding the post correctly, the entire problem they are facing is that you have to scan all source files to build this module->filename mapping.
None of the "essential goals" listed at the top of the blog post requires that modules be imported by namespace instead of filename, as far as I can see. So why was this design chosen when it causes these problems?