`__DIR__` is not available in php < 5.3, use firname(__FILE__) instead.