Persons confined other than in a guardhouse, whether before, during, or after trial by a military court, shall be confined in civil jails, penitentiaries, or prisons designated by the governor or by such person as the governor may authorize to act.