[PATCH] test-runner: fix segfault running with --log non-root