Simplify regression test script for restore

The same condition was checked twice...