Correct detect path for virtualenv.