ENH: Add support for module-style paths in addition to file-style paths.