[build] verify syntax of Lua files prior to packaging