Follow-up to r4417: if the module_path is a directory, we need to examine all Distribution instances found and check whether the key matches the module name. A bit error prone, I wish there were a more direct and robust way to get the Distribution instance from a module...