function in case of broken sysconfig. fix #1074
e.message is not cross-python compatible
use sysconfig from pep425tags and use mock's patch context mgr
Merge pull request #1095 from qwcode/fix-1074

function in case of broken sysconfig. fix #1074