r/harness: truncate log file manually instead of using shell

When truncating the log file in "full" (or "clean") runs, just doing
it manually with open + close instead of relying on shell redirects
for it.

Signed-off-by: Niels Thykier <niels@thykier.net>