Add back _get_pip_bin

Accidentally removed this function when resolving a conflict while
cherry-picking 6e15b50.