[PR] build.sh does not package on compile errors.

This is useful for smaller terminals where the packaging output (zip)
would scroll the terminal, preventing the developer from noticing the
compiler errors.

The formatting of build.sh is changed slightly for readability in
accommodation with this change.