This whole block is redundant with the `this.buildSettings.parseJson` call five lines below, as well as the `basename` computation above.