FIX: StaticEvents should ignore directories during path recognition