Updating version, constructing upgrade script