Create Cache directory if it doesn't exist before writing to
Merge pull request #548 from gmarz/master

Create Cache directory if it doesn't exist before writing to