scons: make test runner a bit smarter