Mind making this `!fs.existsSync(path.resolve(__dirname, '..', '..', '.git'))` instead? Just to make sure it works the same cross-platform.