cd and echo working, still trouble with the redirection of stdin/stdout to/from files