#15 Fix compareVersions function