Fixed an issue were spawned processes did not inherit the parent process's env