Merge pull request #2 from dcz/master

Add version check