fixed API version check
Merge remote-tracking branch 'upstream/master'
Merge pull request #20 from jsrain/master

Fixed API version check