bugfix imfile: segfault on startup in "inotify" mode

A segfault happened when more than one file was monitored.