Middleware creates cache path if it does not exist.

Creates cache path directory if it does not exist. I needed this to let cucumber run with an empty tmp directory (no ./tmp/cache directory).