fix for #3482 sys.flavor and sys.arch are empty
Merge pull request #1261 from McAtte/3.5.x

[3.5.x] fix for #3482 sys.flavor and sys.arch are empty