Correct invalid shell syntax, fixing error messages during build.
Terminate execution if error is encountered.