In all appeals and in proceedings of certiorari to the circuit court, the said court, on motion of the appellee or obligee, may inquire into the sufficiency of the amount of the bond, and of the security thereon, and may at any time require a new bond, or additional security, on pain of dismissal; and if any bond be defective, the principal therein may give a new one, which shall have the same effect as if given originally.