What is meant by costs in §§40-25-131 and40-25-132 is all costs accruing under existing laws on behalf of the state or county, as the case may be, for the faithful prosecution and safekeeping of the defendant, including the cost of boarding juries and that of the jailer; but nothing in this or those sections shall be so construed as to require the state to pay any cost for guarding the jail to prevent mob violence, or to prevent rescue or the prisoner's escape, or for transporting to any other county for safekeeping on any account whatever, but the same shall be paid by the county in which the crime was committed or claimed to have been committed.