OpenBSD 6 uses `openbsd6` as its sys.platform. Strip trailing numbers, then remove the hack for converting `linux2` into `linux`. This should prevent compatibility problems when OpenBSD 7 is used.