That would be great to also use STAGE_APP_DIR in JS files.
If that can help, you can fetch env variable with something like this:
```
const { env } = require('sdk/system/environment');
env.get("STAGE_APP_DIR");
```
But that would complexify all build scripts, ideally `config` would contain STAGE_APP_DIR.