PIM-3533 Add a migration script for incorrectly built versions