Cache integrity check uses relative paths

Fixes cache not detecting that it's outdated when the location of resources folder changes.