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