Fixed upgrade script versioning