The commissioner of correction may, in the commissioner's discretion, contract with a county for building highways, if that work is being done with state allocated funds. Such a contract shall be made only upon the authority of the governor and upon the approval of the commissioner of transportation, and all work under the contract shall be performed by inmates of the penitentiaries.