Bump version to 0.1.2

- Re-instate the `--base-dir` option and make relative path work correctly
- Respect the `--recursive` option
- Minor code cleanup