We have multiple apps stored in separate folders .
When we fetch retoolContext.appname in comes out with the foldername + the appName ,
eg: folder= testArea | app = Proteins. retoolContext.appname = "testarea/Proteins".
The way out of this if anyone is wondering (as it doesn't look good) is to use some js.
appName = retoolContext.split("/")[0]