Fixed issue with doCheckAllModules

Was not checking modules when params.moduleName was defined, now checks
as a fallback if doCheckAllModules is set to true.