Add compatibility with pip >= 1.4 / Issue #270