[scripts] fixed 3.0 upgrade script