Add support for 1.9.6.1 in upgrade script