Correctly detect pip installation for pip 1.1 Thanks to @kblin