Fix inefficient file paths filter Upstream-commit: 2422d5ad35345e0ab24d3f22b96c1271f7c1e07d Component: engine