revert naming change for log files

Commit 61ace80e changed to only add the .log suffix if the name didn't
contain a dot. I'm not at all sure why that was done, and it seems
completely wrong, since the tar command only picks up .log files. SO
make sure there is a .log suffix on every log file written.

Per report from Tomas Vondra.