bash/prompt: refix _update_title

bash 4.3 requires the ~ to be escaped, bash 4.2 requires the opposite.