Fix get_current_version

When some packages share the same base name the get_current_version may return multiple version number which is an error.
18 jobs for master in 7 minutes and 18 seconds (queued for 7 seconds)
Status Name Job ID Coverage
  Fetch Current
passed fetch-current #2265

00:01:58

 
  Build Packages
failed build:bitwarden_rs #2266
executor:docker allowed to fail

00:00:18

passed build:bitwarden_rs-vault #2267
executor:docker big-ram

00:00:37

passed build:dovecot2-antispam-git #2268
executor:docker

00:00:21

passed build:mod_xsendfile #2269
executor:docker

00:00:21

passed build:parsoid #2270
executor:docker

00:00:36

passed build:pgpointcloud #2271
executor:docker

00:00:22

passed build:pgsql-ogr-fdw #2272
executor:docker

00:00:21

passed build:php-imagick #2273
executor:docker

00:03:16

passed build:php-redis #2274
executor:docker

00:03:19

passed build:php-systemd #2275
executor:docker

00:00:22

passed build:postgis-old-upgrade #2276
executor:docker

00:00:23

passed build:prometheus-mysqld-exporter-bin #2277
executor:docker

00:03:24

passed build:prometheus-redis-exporter #2278
executor:docker

00:03:21

passed build:rbenv #2279
executor:docker

00:00:20

passed build:rspamd #2280
executor:docker big-ram

00:00:37

 
  Build Repository
passed generate-repository-database #2281
executor:docker

00:00:47

 
  Deploy
passed deploy #2282
executor:docker

00:00:33

 
Name Stage Failure
failed
build:bitwarden_rs Build Packages
$ useradd -m -U -G "wheel" "aurtomatic"
$ sudo -u aurtomatic ./build.sh "${PACKAGE_NAME}" "${REPOSITORY_NAME}" "${REPOSITORY_URL}"
Package is already up to date, no build needed
AUR Version: '1.8.0-1'
Repo Version: '1.8.0-1'

curl: (3) URL using bad/illegal format or missing URL
Building bitwarden_rs, dependency tree: bitwarden_rs
ERROR: Job failed: exit code 1