this patch doesn't work on windows, you should use `utils.getFile()`

```js
this.domains = [this.config.GAIA_DOMAIN];
this.config.GAIA_ALLAPPDIRS.split(' ').forEach(function(appdir) {
  this.domains.push(utils.getFile(appdir).leafName + '.' + this.config.GAIA_DOMAIN);
});
```