No inmate under sentence for the crime of murder or rape shall be worked or hired outside of the prison bounds of the penitentiary, unless by the direction of the commissioner of correction.