Mark temporary files as read only to reduce the chance of lost changes