Move Lua instance to global.
Ignore logs and scripts directories.