In any proceeding to compel the board to issue a warrant, if a controversy arises as to the amount that is due to the plaintiff, the court shall determine the same in the manner provided for determining controversies in other civil actions, and shall cause a writ to issue for any sums found to be due.