Update check_emc_rlp.pl

Corrected some bugs