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
Made the configuration non-static
Merge pull request #11 from christeredvartsen/no-static-config

Made the configuration non-static
Revert "Merge pull request #11 from christeredvartsen/no-static-config"

This reverts commit 4790d6c8d01470f7fae456a6465c25baab452a37, reversing
changes made to c9e84e366a550c3d09f643bd71cbc63c2a43eda8.