check every link when detecting virutalenv

- can't use just sys.executable, because the env python can be a link target
- can't use realpath, because the env python can be a link to outside the env