Include path in json if logfile cannot be written