pipefail fails in some shells