set pipefail so errors in samse/pe cause script to fail