Fixed a bug with the log files

...where the log files were recreated at each execution rather than
being updated; thanks to Eike Broda