Change rename readdir to scandir

solve https://github.com/moteus/lua-lluv/issues/2