Fix check of pip cache