Add --working-dir option [closes #364]