bugfix imfile: segfault on startup in "inotify" mode

A segfault happened when more than one file was monitored.
Merge branch 'v8-stable'