Added package version to cache to force auto update

Added the current version of the package to the cache file generation to
automatically invalidate cached data and force an update. Required if
the internal data structure changes and old cache data would cause
problems, e.g. after the last change of the pattern hash format.