Close fd 0+1, reopen tty in detached child process; fixes issue #10