Handle directory names.