fork luafilesystem and add chmod function