build system: Fix bug where component src subdirs needed listing before parent source dirs See merge request !778