Allow the use of port 0 to select a random free port.
Detect the presence of pyenv.