fix version number test so it can work with version names like "2.1-beta1"

git-svn-id: https://languagetool.svn.sourceforge.net/svnroot/languagetool/trunk/languagetool@9561 2fe6a88b-1217-0410-b804-ba6ed01314b8