Remove directory name references.