collect only supported platform config files

Changes the way config.xml items are collected so that only items for
supported platofrms are included.