Changed os.uname to platform.uname, and made non-linux OS's work properly.