Use __DIR__ instead of dirname(__FILE__).

This is possible because we require PHP 5.3 or higher.