Whenever any person acting for or on behalf of the department shall, in good faith, institute legal proceedings for any violations of the provisions of this act, and, for any reason, shall fail to recover costs of record, such costs shall be a charge upon the proper county, as shall such costs in the event defendant is imprisoned for failure to pay fine or costs, or both, and shall be audited and paid as are costs of like character in said county.
72 P.S. § 3402-602