fix sync gateway version parsing

Change-Id: If02131efdfde233ab1997f80005f3f1c5d0ff8ea
Reviewed-on: http://review.couchbase.org/40708
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: buildbot <build@couchbase.com>