use wrapper to set LUA_PATH variable to fix #3036

Here is an approach to fix #3036.
I guess this should loop over $NIX_PROFILES instead of just using the user's profile...? What if a module is installed into the "system" or "default" profile?