If upon the final hearing there shall be found a balance in favor of the occupant or unsuccessful claimant, the person proving the better title may either demand of the occupant or claimant the value of the real estate without improvements, as shown by the appraisement, and tender a general warranty deed for the real estate in question to such occupant or claimant or he may pay into court the balance so found due such occupant or claimant within such time as the court shall allow in its final decree.