Whenever such bond, recognizance or undertaking is required or authorized to be given in any criminal proceeding:

(1) In the courts of general sessions of this State the sum of money deposited in lieu thereof shall be paid to the clerk of the court of general sessions in which the proceeding is pending;

(2) In the Supreme Court or the court of appeals the sum of money shall be paid to the clerk of the Supreme Court or the court of appeals; and

(3) In a magistrate’s court or other court of inferior jurisdiction such sum of money shall be paid to the clerk of the court of common pleas and general sessions for the county in which such magistrate’s court or other court of inferior jurisdiction shall be.