Fix GUI-test tst_upgrade.rb