Fix parent process environment propagation to child