Reimplement is_debug_enabled in Lua.

Now, debug keys are enabled if there is an empty file called "debug" in
the quest write directory.