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

This fixes the empty sys.arch and sys.flavour problem on hp-ux