The expenses of such burial and headstones shall be paid by the county in which such soldier, sailor or marine resided in the time of his death; and the board of county commissioners of such county is authorized and directed to audit the account and pay the said expenses in a similar manner as other accounts against such county are audited and paid.