Use stream.write in favor of console.log when using printStdout/printStderr

Conflicts:
	lib/utils/index.js