Extended undefined-variable checker for Lua 5.1 and 5.2