fix versioning check
Merge pull request #2818 from owncloud/fix_versioncheck

fix versioning check