lua-console: proper version check