[externaltools] properly quote terminal dir

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=711534