configure: Use number of commits as repository version if no tags are found

Signed-off-by: Euan Harris <euan.harris@citrix.com>
configure: Use other sources' versions in the overall package version

Signed-off-by: Euan Harris <euan.harris@citrix.com>