[Py3] Fixes for sysinfo.py

- sys.platform returns 'linux', not 'linux2' or 'linux3'
- Fix some typos in sysinfo.py

Bug: 1205898
Change-Id: Id67f9bbfffbc07fa3eebca429c978545eed1e1a3
Reviewed-on: https://chromium-review.googlesource.com/c/native_client/src/native_client/+/3358589
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Commit-Queue: Fabian Sommer <fabiansommer@chromium.org>
diff --git a/tools/sysinfo.py b/tools/sysinfo.py
index 3ce40e3..bf91554 100755
--- a/tools/sysinfo.py
+++ b/tools/sysinfo.py
@@ -132,6 +132,7 @@
 
 
 PLATFORM_INFO = {
+    'linux': InfoLinux,
     'linux2': InfoLinux,
     'linux3': InfoLinux,
     'darwin': InfoDarwin,
@@ -152,10 +153,10 @@
   if sys.platform in PLATFORM_INFO:
     try:
       PLATFORM_INFO[sys.platform]()
-    except Exception, err:
-      print('ERRROR: processing sys info', str(err))
+    except Exception as err:
+      print('ERROR: processing sys info', str(err))
   else:
-    print('ERROR: unknwon platform', system.platform)
+    print('ERROR: unknown platform', sys.platform)
 
   return 0