Detect wrong component

fixes #23
i was so scared of / fedup with using the old code i fixed https://github.com/quattor/CCM/issues/36 :smile: