build: fix some errors in i18n-scan.pl, support bracketed Lua string notation