Section 54. If a change of venue is ordered, the sheriff having custody of the prisoner shall forthwith deliver him to the sheriff of the county to which the venue has been changed, who shall receive and safely keep him as if the indictment had been found in such county.