Bugfix for PHP < 5.3.0

Constant ***__DIR__*** was added in PHP 5.3.0 ;)