Updates cmdline.c
Improves debugging output
Fixes major typo

handle_syscall was checking the first argument to the syscall instead of
the return value! This means that the signed >=0 check was in fact
checking that the first argument (usually an address, unsigned) was
above (unsigned)-1.

This is the reason why it was not picking up on some files.