The board of workhouse commissioners shall prescribe the kind of labor at which the prisoners shall be put; provided, that when practicable, they shall be worked on the county roads in preference to all other kinds of labor.