There's no mechanism in law to do that (IMO there should be).
I was talking to the governor (or may have been his deputy) when I visited in 2005. He said that sentences under three months (so in reality six months as they are released halfway) there's no point in giving drug addicts a rehab...