improve handling of interpreters other than stock Lua 5.2