process takes env as an argument

This lets plugins change the environment of other plugins, for example.