add cmdline support for log_dir
Merge pull request #37 from rtoma/master

added support for cmdline option log_dir