improve automatic virtualenv selection