fixed some issues with the logger and the file writer, namely a consistent path and dynamically creating missing directories