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