Allow custom options for stdout_stream and stderr_stream

This pull request fixes the issue described in #495. It also fixes the `set` command with custom stream options.