Spawn env

Upstream is dead, clearly, and this code doesn't work with modern node (v0.10). I wish there was a better expect for node.js, but since this is what we have, and we have lots of CLIs that need testing, it needs to work better.