Fixing check for enableJSTGlobalVariable in config

The current checks for `config.enableJSTGlobalVariable` and `config.baseTemplatePath` were not working because they both live in `config.options`. These are merged into `options` earlier in the script, so I'm using that.