Fix: component.mc wins over index/dhandlers without trailing slash

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Improve readability of the @candidate_paths selection process

Signed-off-by: Pedro Melo <melo@simplicidade.org>