Fix Uint8Array detection in nodeJS (no window object)