allow specifying env in util.check_output

e.g. `util.check_output(['cmd'], env={'FOO': 'BAR'})`

Alternately, one could just allow any unrecognized `**kwargs` to be forwarded to Popen.