fixed missing return check of binary mock build