Section 54. If no person appears and is admitted as a party as aforesaid, or if judgment is rendered in favor of all the claimants who appear, the cost of the proceedings shall be paid as in other criminal cases. If only one party appearing fails to sustain his claim, he shall pay all the costs except the expense of seizing and keeping the beverages, and an execution shall be issued against him therefor. If judgment is rendered against two or more claimants of distinct interest in the beverages, the cost shall, according to the discretion of the court, be apportioned among such parties, and executions shall be issued against them severally. If such execution is not forthwith paid, the defendant therein named shall be committed to jail, and shall not be discharged therefrom until he has paid the same and the costs of commitment, or until he has been imprisoned thirty days.