enable writing of only selected output paths

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