Attempt to create the base cache dir before checking if it's writeable

We configure our application to have a data/ folder which is writable by Apache, if the client can attempt to create it's own base folder (data/drpublish/) we avoid handling this on deployment :)
Merge pull request #8 from androa/patch-2

Attempt to create the base cache dir before checking if it's writeable