r with all costs and expenses of every description to be allowed by such court, shall be first paid, and the balance, if any, deposited according to the order of such court, to be paid under its direction to such person or persons as shall establish title to the same.