Penalties unpaid or accruing by any bylaw or regulation of the library board may be recovered in a civil action. Such action shall be instituted in the name of the library board and moneys collected in such action shall be forthwith placed in the city treasury to the credit of the library fund.