Also prevent very long directory names from overflowing over neighbour items. Also bump base for lua-ljsqlite3 to use sqlite3_close_v2() and avoid possible crashes.