external tools: Use a GIOchannel also for stdin

Write into the stding pipe asynchronously using a GIOChannel in
nonblocking mode