This fixes an Arguments to path.resolve must be strings error.