Generate proper cd command under linux.
Properly handle the ENTER key under linux.
Add quotes around path for linux (to support paths with spaces).