fix runscript.sh infinite loop and lsb.pl  bug