Make the `test/run` script compatible to the ancient Bash version on macos.
```
test/run: line 56: conditional binary operator expected
```
Also, run `set -e` only for Bash >= 4. Otherwise the shell silently exits with
a failure when a command (expectedly) fails.
fix bogus test failure with Bash 3.2 on macos