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

add pipefail option to scripts.