fixed Lua/C module detection and updated package db