Define __DIR__ constant for PHP 5.2.x