When final judgment shall be rendered as provided in Section 27-27-40 the court shall direct a sale of the land recovered in ejectment on the following terms: That out of the proceeds of sale the plaintiff in ejectment or his legal representative be paid the amount ascertained as the value of his land without improvements put thereon in good faith by the defendant and the surplus, if any, be paid to the occupying claimant or his legal representative. But this section shall not apply when the plaintiff in ejectment or his legal representative shall, within sixty days after the aforesaid special verdict, pay into the office of the clerk of the court, for the defendant, the value of the betterments as so found in such special verdict.
S.C. Code § 27-27-60