Attempt to fix Process.pipeIn - test passes

Fixes #280, not elegantly yet but at least as proof-of-concept.