Added exit status to build script