Detect wrong component

fixes #23
i'll try to use some of the old code again while waiting for https://github.com/quattor/CCM/issues/36