Raise exception if build command fails