modified rshell.cpp: add cd, ^C, ^Z, and execv features