core: fixes cashing-bug wrt inotify.
core: fixes cashing-bug wrt inotify.

it actually didn't cache due to
mis-interpretation of inotify_add_watch
return value evaluation.

christianparpart/x0,xzero/x0,christianparpart/x0,xzero/x0,christianparpart/x0,xzero/x0,xzero/x0,xzero/x0,christianparpart/x0,xzero/x0,christianparpart/x0,christianparpart/x0,christianparpart/x0