Fix problem that child process does not inherit environment variables