(2)For the purposes of such reimbursement the master or the owner or his agent may, if the wages are earned subsequent to the desertion, recover them in the same manner as the deserter could have recovered them if not forfeited; and the Court in any legal proceeding relating to such wages may order them to be paid accordingly.