The ending was off, for sure. That was the tacked on bit that made little sense. It was as if the makers of the film felt they needed to redeem the characters but it didn’t fit.
An alternative ending could’ve been that they kept the money, orgnise to be returned to the site of the cash, collect the cash with a rescue helicopter and then distribute the money, plus the dead friend gets more too.
That would have been an excellent play at the end.
Instead it was like they went for an easy option or ran out of budget!