Replaced version comparison function

Fix for OSX error message:

    expr: not a decimal number: '1'