better version tag parsing