Modification to handle situation where 'file:add' event is broadcasted rather than emitted.