Make version parsing in examples more intelligent

Ignore minor and patch releases of semantic versioning in the
examples.

Change-Id: I5c6e5bf7f8752e00877ace8e4dd35aacd6024b18