replaced the linux implementation of StdioRedir with a bidirectional version