Check for buildscript exit code