Enable writing of selected output paths only. Refs #224.

- add WRITE_SELECTED setting
- add --write-selected commandline option