improved tag parsing in determine_version.sh (issue #61)