Reset System streams if necessary.

Upon executing a command, the System streams (input, output, and error
streams) may be reset. Nailgun should guard against that and
re-initialize them if necessary.

Fixes: #34