set modes of directories only for git mode
correct place
Merge pull request #168 from jsuchome/var_cache_swift

set modes of directories only for git mode