[scripts] metadata.pl: fix handling of HOST_BUILD_DEPENDS if a package is referenced...