enable writing of only selected output paths

- added WRITE_SELECTED setting
- added --write-selected commandline option