fixes in registry template and batchfile luarocksw.bat