File cache driver bugfixes.
Merge pull request #4 from adaosantos/master

Did some file cache driver bugfixes.