Add pip version sniffing to work around wheel bug