Try to create directories before opening a log file.
Merge pull request #5 from dylan-lang/ensure-directories-exist

Try to create directories before opening a log file.