Create cache directories