Don't iterate directories twice

From the docs recursive_directory_iterator can return
directories. Use an is_symlink check to avoid searching
directories twice.

Change-Id: Ic0281ae623e10571199113d036d38db6a436bede
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/sensors/src/Utils.cpp b/sensors/src/Utils.cpp
index c211ecd..45670c5 100644
--- a/sensors/src/Utils.cpp
+++ b/sensors/src/Utils.cpp
@@ -98,9 +98,7 @@
             if (std::regex_search(path, match, search))
                 found_paths.emplace_back(p.path());
         }
-        // since we're using a recursive iterator, these should only be symlink
-        // dirs
-        else if (symlink_depth)
+        else if (is_symlink(p) && symlink_depth)
         {
             find_files(p.path(), match_string, found_paths, symlink_depth - 1);
         }