more clean versions comparison

fixes yosemite 10.10 issue #13