Yeah, sorry, you have to use my Pi-Main object which you can find in the download section, OR basically you have to create a global variable inside you main lua file (the one with the main loop) GetGlobalString("mode") == "GAME_MODE".
http://leadwerks.com/werkspace/index.php?app=downloads&showfile=72
I do plan on making these a little more functional also. Just takes some time. I just thought it would be nice to get the general idea out there to see what others thought and could come up with.