Remove duplicate opendir