Make test-network.sh use sh (or bash when it's available)
test-network.sh doesn't work very well with non-bash /bin/sh. But we can't do legacy/trac#19699 (moved) in 0.3.0, so we need a workaround until then.
This is a bugfix on legacy/trac#21562 (moved).