readdir bug fixes.