make File.watch more robust