bugfix for PHP 5.2 compatibility, __DIR__ constant was added in PHP 5.3.0