All persons sentenced to imprisonment in a county department of corrections facility shall work under rules and regulations prescribed by the superintendent of the county department of corrections or the county commissioners of the county in which such facility is located.