Cache: exists() called for files / relative path support

The distributed cache now supports relative paths, and checks whether the file actually exists.