Fixes #5381 bug when easy_install is used with virtualenv