fix watched file & dir.