Renamed DirectoryManager method.

OLD: DirectoryManager._write_metadata().

NEW: DirectoryManager._write_metadata_module().