PIM-3533 Add a migration script for incorrectly built versions

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | N
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | Y
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | N
| Fixed tickets        | ~
| Doc PR               | ~
There's a message before this one which indicates how many versions will be migrated, kinda redundant.