Add log file existing check.