modified error_check.pl to return an exit status equal to the amount of error lines it found