The convicts worked on railroads in which the state has an interest shall be under the control of the board of internal improvements, who are authorized to make regulations and appoint officers, guards, &c., for the working and keeping thereof, which shall be as far as practicable in conjunction with the government of said railroad.