Single quote env var values.
Move quoting to else block only for valid vars. Add test case.
Merge pull request #1587 from joshfng/master

provisioner/shell: single quote env var values.