Fixed bug in HTML logger (if the output dir does not exist, the logger failed to create the html output).