DistCache: executable flag, dir support