Fix missing original env variable issue on multiple test cases.
When the parent spawn the child processes, the environment variables passing into the child processes are missing the original env variables passing into the parent. Some missing variables like LD_LIBRARY_PATH cause the child processes unable to run.
PR-URL: #3183 (closed)