Update inotify monitor to check for a file name using the inotify_event::len field.