Fix incorrect filetype in readdir.