fix pip detection