Refactor shell.c: Extract read token functions
Fix typo in syscall.c