Fix for #102

Use the same code for this.env.options.appPath as in script-base.js