testenv/osmo-dev: split get_targets to own funcSplit the code for getting osmo-dev targets into a separate function, sothis can be reused in the next patch.Change-Id: I2bd7c05102ca472614289870957cdca335c01eaf