Set pipefail option, whih reports the last non-zero exit status in a pipe. Resolves #12