Work on directory canonicalization and opening.