hooks/fancy: allocate unique fds for original stdout and stderr.

scripts/shell uses fd 9 for its purposes and it took me 10 hours of debugging to figure out
why it silently fails with SIGPIPE..