several bugs fixed on readdir()
ls ported