Made mkdir recursive

When using LifetimeFileCache the cache folder is not properly created (because there is a subfolder).
Merge pull request #13 from LouTerrailloune/patch-1

Made mkdir recursive