use quotes for values of environment variables in exported scripts

This is needed for variables that have spaces in their values.