fix SensioLabsInsight Resources with __DIR__ detection (take 2)