Add a function to compare version number strings

Change-Id: I88d3d9040f70e84752ade19001a699f60e9e7636