fix virtualenv detection on Windows