(a)
(1) All moneys recovered for the cost of care of prisoners in a facility of the Division of Correction or the Division of Community Correction under this subchapter shall be deposited into the State Treasury.
(2) The Treasurer of State shall credit the moneys to the appropriate fund established by law from which appropriations to the Division of Correction or the Division of Community Correction are made for inmate care and custody at the Division of Correction or the Division of Community Correction.
(b) However, the cost of making any investigation necessary to secure the reimbursements provided under this subchapter shall be paid from the reimbursement secured under this subchapter in those instances in which the General Assembly has not otherwise provided funds to defray the cost of the investigations.