[TIMOB-11869] Added the config param to the plugin and module detection calls so that we can use the global ignoreDirs.