Fixed a bug in processReaddir that would indefinitely loop.