"the attorney-general orders that he be released earlier or such proceedings have not commenced within six months from the date on which he is so detained in which case he shall be released after the expiration of such period"