added handling for ignore directories in scenarios where root contains unusable directories