Autodetect index url / extra index url etc from the relevant environment variables and pip config file locations.