patch to allow .git folder when not in --production environment