pty: Set env var with vte version

This is necessary so that we'll be able to check whether to use the
vte.sh script in PS1.
prompt: Make __vte_ps1 only print anything if running under vte