Fixed bug in eof bug in textmode stream. This time it should be correct. Also added support for custom environment variables passed to pipe in (only Linux yet) InvokerExecute fires commands in Wand