One more adjustment (hopefully the last). Covers the case where the log file exists but is not writable in the sanity checks.
One more adjustment (hopefully the last). Covers the case where the log file exists but is not writable in the sanity checks.