The new script handles subfolders, too.
An API nightbuild has been set up at http://mc-server.xoft.cz/LuaAPI