contrib: detect local Lua 5.2