Made mkdir recursive

When using LifetimeFileCache the cache folder is not properly created (because there is a subfolder).