component/fontconfig: strip path elements and don't include empty elements
This prevent some Fontconfig warnings ("empty font directory name ignored") when the software includes empty items, which can easily happens with multi level templates.
This prevent some Fontconfig warnings ("empty font directory name ignored") when the software includes empty items, which can easily happens with multi level templates.