normalize directory names