If in fact the defendant's sentence requires that he be released whether or not the SCRAM device is available, he can have his lawyer file a petition for habeas corpus with the court, and demand that the judge release him consistent with his actual sentence.
It is possible that if he were to review his actual sentence, he will find that it allows for this contingency -- his detention until the SCRAM device is installed, with the additional days credited toward his maximum jail term.

