Uses shellescape for serializing options for `env`

Prevents environment variables containing quotes from breaking bash
commandlines.