add pipefail option to scripts.
Merge pull request #4 from hansode/feature-pipefail

add pipefail option to scripts.