Added requirement that the Path argument of the DirectoryModLoader must be a directory.