Double check the file exists before deleting in File cache adapter.

Fixes #1014