Fixes an undefined variable issue in version API.
Merge pull request #23 from hartym/master

Undefined variable in version API checks.