Fix printf new line displaying method

Fix: new promt info skipping line.
Other: place \n to the end of the printf message instead of front
Minor: disable printf("cd command complete\n") for the cd command