Update scripts to fail when build fails.