iss: Better err handling in build scripts.

Now checking for errors in every step of the build
phase