bashrc: detect tty to fix scp