[BE] Fix `collect_env` for python-path-with-space (#98415)
By invoking [`Popen`](https://docs.python.org/2.7/library/subprocess.html#popen-constructor) with list of command line arguments, rather than strings that would be parsed by shell.
Test plan:
```shell
% conda create -n py311 python=3.11
% cd ~/miniconda3/envs
% cp -a py311 py\ 311
% ./py\ 311/bin/python -mtorch.utils.collect_env
```
Fixes https://github.com/pytorch/pytorch/issues/98385
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98415
Approved by: https://github.com/huydhn