[1.7.x] Fix __latest__ to actually resolve to the latest migration