Re-wrting .metadata.json before export