Use settings.env as Popen's environment