Add a new error message for scanModuleFiles method. It will now show the *right* error when specified dir not a dir.