Only attempt log file cleanup if the directory exists. Otherwise an error occurs.