If any of the shops or buildings in which convicts are employed are destroyed in any way, or injured by fire or otherwise, they may be rebuilt or repaired immediately under the direction of the department, by and with the advice and consent of the governor, and the expenses thereof shall be paid out of any unexpended funds appropriated to the department for any purpose, not to exceed one hundred thousand dollars: PROVIDED, That if a specific appropriation for a particular project has been made by the legislature, only such funds exceeding the cost of such project may be expended for the purposes of this section.