dependencies: Avoid duplicated code
dependencies: Avoid duplicated code

The dependency version from a subproject was checked in two different
places. Do it in get_subproject_dep().

jpakkane/meson,mesonbuild/meson,mesonbuild/meson,QuLogic/meson,becm/meson,becm/meson,mesonbuild/meson,mesonbuild/meson,pexip/meson,QuLogic/meson,pexip/meson,QuLogic/meson,mesonbuild/meson,jpakkane/meson,pexip/meson,becm/meson,pexip/meson,QuLogic/meson,mesonbuild/meson,QuLogic/meson,QuLogic/meson,jpakkane/meson,becm/meson,mesonbuild/meson,mesonbuild/meson,pexip/meson,jpakkane/meson,jpakkane/meson,becm/meson,jpakkane/meson,pexip/meson,QuLogic/meson,becm/meson,pexip/meson,jpakkane/meson,pexip/meson,QuLogic/meson,QuLogic/meson,becm/meson,mesonbuild/meson,jpakkane/meson,becm/meson,pexip/meson,mesonbuild/meson,becm/meson,jpakkane/meson,becm/meson,pexip/meson