[scripts] metadata.pl: fix handling of multiple conditional depends that reference...