Attempt to make test from r195886 portable with different shells

Windows and Hexagon complained. It's not clear which command is failing, so
will back out the changes if this doesn't do the trick.