fix the version check for downloaded apps. Fixes https://github.com/owncloud/apps/issues/1485