Make sure log file exists before trying to attach it.