vte.sh: Fix tilde replacement for bash-4.3.

https://bugzilla.gnome.org/show_bug.cgi?id=733504
(cherry picked from commit f09439bf7d05cb81c37e3e1a8a4af71f489700ba)