Fixed input for external process with pipe

and added default case for cd command in mysh