Add --logdir as a command line option. [Fixes #16]