Temporarily use dir_mode under file.directory instead of dir_mode under file.managed which seems to have issues.