[ATK14] Another improvements in scripts/migrate