wheel: account for purelib != platlib

Find and parse WHEEL to determine whether the root of the wheel is purelib or platlib.