Redirect main process' input to sub-process input. Fixes #2.