compile: Handle finding Git tags with the debian_release in them

Git repos that follow the standard Debian conventions have tags like,
e.g., "debian/2.8.17-1". See

    https://github.com/lamby/pkg-redis/releases

Whereas normal repos generally have tags like "v2.8.17". So let's
handle both cases.