change to __FILE__ from __DIR__ for compatibility