Fixed config checking code in migratecfg