sed: fix 2 bugs (one testsuite entry + one newly found)
but more importantly make code more understandable
2 files changed