Section 23. No sentence of a male convict to imprisonment or confinement for more than two and one half years shall be executed in any jail or house of correction.