Add auto chmod for file cache