Adding support for dirent-based file IO.