Correct implementation of POSIX DIR tracking.
Restore POSIX DIR information from the trace.