fix a typo putt_recall_unit -> put_recall_unit
lua [find_path]: always declare max_cost as a local

this is faster since it avoids repeated global lookup, and
suppresses lua_strict errors.