Don't override, instead extend `module_dirs`. Fixes #3754.