Fix segfault when trying to cd or ls an empty dir.

Guiterminal checked ret[0], and the empty string, when exploded produces
an empty array. widget::string_explode is generally shaky and doesn't
seem to cope with the last part.