Improve file modification detection

Avoid duplicate detection with polling