Fixed an nvram quoting issue to enable python -c

Previously, `zvsh --zvm-image=... python -c "<code>" did not work. This
fix adds some better quotation handling to enable this functionality.
This affects the generation of the nvram file.

If I get some time in the next few days during the summit, I'll update this pull request to add some tests as well.