create cache dir if it doesn't exist
Merge pull request #3818 from dimagi/add-static-dir-check

create cache dir if it doesn't exist