Tried to get it working. It didn't work.

luaforge.core.getMinecraftDir()