Any laborer or furnisher of labor or material to the contractor, or to any immediate or remote subcontractor under the contractor, may bring an action on the bond, and have recovery in such laborer's or furnisher's own name, upon giving security, or taking the oath prescribed for poor persons as provided by law; but in the event of such suit, the city, county, or state shall not be liable for any costs accruing thereunder.