Fix chatbotlogfile not creating/writing to logfile

Bug report by TorchRJ_