Detect lua5.2
Do not fail if lua is not found
Merge pull request #1691 from cmouse/lua-5.2-support

Detect lua5.2
Detect lua5.2 and improve the script