While troubleshooting self-hosting migration, we run into issues with sync-metadata script introduced by recent changes