fixed the checker when used within a phar file