correct chmod for directories