test-runner.sh: support non-gnu sed