Define __DIR__ for older PHP versions than 5.3

Fixes problem when checker displays error "Error: template file is not readable. Check assets folder (part of distribution), it should be present, readable and contain readable template file." on systems without PHP 5.3.0 enabled.