updated create file cache directory logic