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