fixed - __DIR__ and __FILE__ detect