[Truffle] Use the local variable instead of looking the global variable.
[Truffle] Pass some stdout/stderr encoding specs.