Only match module name or submodules
Remove duplicates