Create cache and logs directory