A fix to registration of component names.

I remembered why I was using find rather than ==.  It should now work
for the problematic cases though