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