Update check_dois.pl

fixed some bugs