fix behavior of inotifywait