Detect external file change
Fix monitoring external file changes