utils: match parents

Match parents like '/org' in addition to '/org/openbmc/foo' when
testing with org_dot_openbmc_match.

Change-Id: I707f1de0367bfad0de4afa4436b10203c0d7f852
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/obmc/utils/misc.py b/obmc/utils/misc.py
index d556dfd..01ecec1 100644
--- a/obmc/utils/misc.py
+++ b/obmc/utils/misc.py
@@ -24,8 +24,9 @@
 
 
 def org_dot_openbmc_match(name, sep='.'):
+    names = org_dot_openbmc_match_strings(sep)
     return any(
-        [x in name for x in org_dot_openbmc_match_strings(sep)])
+        [x in name or name in x for x in names])
 
 
 class ListMatch(object):