Set permissions when creating dirs.