checks for both v2.x and v3.x
Merge pull request #9 from luisparravicini/version

checks for both v2.x and v3.x