Fixing input/output error

As described here:
http://stackoverflow.com/questions/10238298/ruby-on-linux-pty-goes-away-without-eof-raises-errnoeio

As a response to this issue:
https://github.com/pitluga/subcontractor/issues/12