added recursive searching to _gettextvalue in ldtpd