expose --logDir and --tmpDir as command line parameters, closes #221