Correct expansion for directories.