(a)if he is in custody in an air force, military or civil prison, or in an air force or military detention barracks under a warrant issued under rule 147, a further warrant in the relevant form given in the Seventh Schedule shall be issued by the commanding officer of such person; or