create chunk and snippet directory for caching