Fix usage of 'arg' variable.  This was deprecated with Lua 5.1 and doesn't exist with LuaJIT