Add ability to pass custom environment variables as spawn options

It makes possible to pass custom environment variables to a spawning child processes.