Mai/Svetlana: changed the way we count failed builds