checks for both v2.x and v3.x

version plugin works in cocos2d v2.x and v3.x