add pipefail option.
Merge pull request #10 from hansode/feature-pipefail-option