If this was a separate movie on its own unrelated to the Friday franchise and its characters, then it might have worked as a standalone flick starring Cube and Epps.
There have been plenty of prison comedy movies in Hollywood, but the issue imo isn't the prison script but the introduction of a rehab run by Smokey and how all of that supposedly fits into one day (Friday) is what probably really threw off the movie executives.