Better `exec()` detection. Avoids esky build `NameError`.
Merge pull request #8542 from s0undt3ch/0.17

Better `exec()` detection. Avoids esky build `NameError`.
fix use sudo pwuser not git attribute
Merge pull request #8583 from Jiaion/0.17

fix use sudo pwuser not git attribute