Eliminating duplicates in create directories lists