Fix redirection of IO streams
Merge pull request #599 from avsej/fix-io-redirects-in-installer

Fix redirection of IO streams
Merge remote-tracking branch 'bbatsov/master' into bbatsov-master