check the lua version for make it working on lua5.1