Fix kent upgrade script