Provided, that it shall be the duty of the marshal, his deputy or other officer, who may arrest a person charged with any crime or offense, to take the defendant to the nearest circuit court commissioner, or the nearest judicial officer having jurisdiction under the existing laws for a hearing. commitment or taking bail for trial. and the officer or magistrate issuing the warrant, shall attach th