Tivoli TEC Adapter Query

I need some help and guidance if possible for what I think is a complex request…

When I run this…

(pathname of image file of it, state of it) of processes whose (name of it contains "tecad_logfile")

I get…

/foldername/tecad/bin/tecad_logfile

The TEC adapter could be installed anywhere which is why I initially run that command to get a rough idea where the config file is that I need to read

Based on the path returned I know that the config file will be a folder up but in

/foldername/tecad/etc/tecad_logfile.conf

Is there any way using purely relevance that I can get the contents of the tecad_logfile.conf file based on that?

Or can anyone think of a better way of doing this without running a fixlet?

You can do something like below, I dont have same file but you will get the idea.

Q: lines of file "test.txt" of folder (preceding text of firsts "BESClientUI.exe" of ((pathname of image file of it) of processes whose (name of it as string as lowercase contains "client")))
A: Helloo
T: 25.358 ms

Another option once you have a reference to the file /foldername/tecad/bin/tecad_logfile would be to use a construct like

(file "etc/tecad_logfile.conf" of parent folder of parent folder of it) of file "/foldername/tecad/bin/tecad_logfile"