Allow passing of environment variables to spawn()