Build script update to abort on error