chore(scripts): fail on pipe failures

Closes #922 #1172 #1289 #1291