Fixed handling of exit status. Clean sw-upgrade directories
Remove demoDB if exists
Fixed DryRun for tst_upgrade.rb