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.
2 jobs for fix/fontconfig in 0 seconds
Status Job ID Name Coverage
  External
passed SlapOS.SoftwareReleases.IntegrationTest-Jerome-Python3

03:29:59

failed SlapOS.SoftwareReleases.IntegrationTest-Jerome-WIP

07:10:18