All persons convicted of a felony, whose imprisonment has been by the jury commuted to imprisonment in the county jail, shall be compelled to work out the term of imprisonment at hard labor in the county workhouse in the county where convicted.