Fix some issues on remote server with alias and prompt.