moved log_dir creation to main thread
Prevents race condition https://github.com/russss/Herd/pull/19