(b) When any person confined in a hospital for the mentally ill while serving sentence shall be restored to mental health within the opinion of the superintendent of the hospital, the superintendent shall certify such fact to the Director of the Department of Corrections of the District of Columbia and such certification shall be sufficient to deliver such person to such Director according to his request.