lua tempalte support for linux
Merge pull request #5797 from minggo/lua-template-linux

lua tempalte support for linux