tail: use fsnotify instead of inotify
lotfw: fix stucking err channel
tail: fix unclosed file descriptor
test: adjust for windows