use putenv() instead of relying on Bash inline variables

fixes #1086
Merge pull request #1086 from wp-cli/fix-1086

Cygwin shell doesn't support inline environment variables