correctly expire cache if version file changed. Fixes problem that ownCloud only starts upgrading during login
a few styleguide fixes
Merge pull request #5142 from owncloud/fix_version_cache_expire

correctly expire cache if version file changed.