CHANGED rewrote OS bitness detection

untested changes