[script] Modify 4.0 update script