Update server-shell.pl

Bug Fixes