chore(scripts): fail on pipe failures

Closes #922
Closes #1172
Closes #1289
Closes #1291