Those apps that were converted from tcz's have to be run from the directory above the local/ one in the extension. That is the reason for the cd command used.
It is kind of a hack to allow converted extensions to work, though it does interfere with command line use. The relative path used in exporting is due to already being in the right directory, and using an absolute path won't let us run the app from just any dir.
I will look into perhaps another way of making the app work while also being able to be used properly from the command line. But I am basically done with converting existing tcz's, so eventually I or someone will build or rebuild the apps outright from source. Converting did help with providing an initial repo, but there are many potential pitfalls with it.