Check if d-logfile exists before logging (fix #6)

This means that write_logs() takes care of creating date log file if
none exists. Note that chapter logs are overwritten and thus do not need
to be checked.