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

add pipefail option to scripts.