correctly expire cache if version file changed. 

Fixes problem that ownCloud only starts upgrading during login.
Please review @schiesbn @DeepDiver1975 @PVince81 @kabum