I added this check in scpeters@a0eb2a0, with slightly different logic, since sys.platform resolves to `linux2` if using kernel 2.x, and `linux3` for kernel 3.x.