Change __DIR__ constant to dirname(__DIR__)