simplify cookbook, properly handler permissions for nested folders