Fix some readme and script bugs in examples (take 2).

v2: Resolve issues from comments, fix bugs in update-demo example, rename files for clarity, add turn-down steps.

v3: Add more set commands, clean up rest of env var checks.
Merge pull request #1265 from mbforbes/master

Fix some readme and script bugs in examples (take 2).