optimize version check
Merge pull request #72 from nutty898/master

optimize version check