v0.4.0 refs #6 Behave correctly when stdout is redirected or piped