The LUA_PATH and LUA_CPATH variables are needed to load libraries. This setupHook exports them to the environment.