Fixes #5381 easy_install bug when used with virtualenv