Fix extraction of modules in modules/ directory.