Bugfix for defaultFiles array population

Fixed a wrong variable used while populating the defaultFiles array. 

Received error:
path.js:360
        throw new TypeError('Arguments to path.join must be strings');