test-runner.sh: use awk over cut for portability