Fix git_compare_version function

Previously would return -1 for any case where one of inquired version
parts would be greater than local version part.

Signed-off-by: Aleksandrs Ļedovskis <aleksandrs@ledovskis.lv>