Since Lua is a dynamic language, it should be possible to check the table definitions to allow the same script to work in either version.