linkapps: replace #max_by with #max

Enumerable#max_by didn't exist in 1.8.6, so linkapps failed on Leopard.