Detect wrong component

fixes #23
Merged quattor/CCM#36, go for it.