Add proper ssh detection for shell prompt.