linux compilation
fix incorrect file removal event generation logic