Add support for file truncation in InotifyFileWatcher