Modified build scripts to end if cmake fails