Add --logdir option [Fixes #16]

Here's the patch to add the new option.