Don't use git if "nocheck" profile is in use, use fake identity
This fixes two related, but separate FTBFS issues. I now tested this and the resulting build is sufficiently similar in diffoscope that I'm confident I didn't break anything.
Edited by Sven Mueller