Improve rpm version comparsion algorithm

Change-Id: Id67c8d0d93b582f4b401893b4fa5247e1f530d13
Closes-Bug: 1352896
Merge "Improve rpm version comparsion algorithm"