replace dirname(__FILE__) by __DIR__

Since PHP 5.3 is now the requirement, we can use the __DIR__ magic constant instead of dirname(__FILE__) for a little extra performance.