Changed version checking code.
Merge pull request #2 from DVAlhadeff/master

Changed version checking code.