Fix a directory lookup.