ensure log file exists before trying to open it