Any applicant for the benefit of the insolvent laws, who is or may hereafter be in confinement under sentence of any criminal court, and who shall be entitled to be released from such confinement, on a compliance with the provisions of existing acts of assembly, shall be released upon giving bond, as in civil cases.
39 P.S. § 324