Fixed defaultFiles array population

Fixed defaultFiles array population, which tried to path.join(path),
which caused the following error: TypeError: Arguments to path.join
must be strings