Replace os.uname with more portable platform.node