Replacing file watch (-w) with syscall