Fix missing return statement
Use strconv and strings to parse version string.

By using strconv, value out of range problems are catched and a
version part thats too high will not cause trouble.