rt: remove opendir/readdir hack