Utils: Refine codes to parse dependency version

This patch makes the following changes:
1. Create "util_parse_version.sh" for function to parse dependency
   versions.
2. Expand parse_version() to support parsing versions from different
   types of file.

With this patch, CI is able to auto-parse the tf-m-tests version from
the newly defined txt file instead of CMake file.

Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: Ib5b6d38ead6346ff5482f1e6baabf73ea185eff1
2 files changed