Re-add cd workaround for GNOME Terminal.