rewrite pipefail for xcpretty