Fix an error where the modified state of a watched file wasn't reported as such.