Update cmd.py

I added a few little features:
1. Before the prompt, the program prints the current directory (as in Windows cmd);
2. CD .. now performs the same function as CD <;
3. I put the command-evaluating in a separate function, to make our lives a little easier.