Fix file change detection ignoring multiple change events