[unix] bugfix: allow different fds for input/output (STDIN/STDOUT)