This reverts commit f8005d2737. fix needs to be rethought as it applies to only newer git versions and use of env shell breaks with non 'bourne compatible' shells
f8005d2737