Fixed bug in build script (using raise instead or error).