Section 34A. A person shall not be committed to jail for the non-payment of a tax, nor shall a person so committed be further detained therein, if he gives to the collector or to the officer charged with the service of the collector's warrant a bond running to the collector sufficient in amount to cover the amount of the tax and all interest and other charges and fees which are or may become due thereon, conditioned to pay the same to the collector or officer within thirty days thereafter or within such further time as the collector or officer may fix, and with such surety or sureties as the collector or officer or a master in chancery may approve. A person shall not be committed for such non-payment until he has been given a reasonable time to procure such a bond.