Remove usage of 'devX.gY' in comparision functions

The pbr package is changing how these names are generated
so instead of comparing directly to 'dev146.g79fbeb7' or
similar we should just compare to the nearest tag (which
should be stable) instead.

Change-Id: I02da38d81663e7f2a31c721ebff27ba633610675
Merge "Remove usage of 'devX.gY' in comparision functions"