Fix version check
Merge pull request #1599 from delphiactual/master

Fix version check