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

@filbranden does @jbeda's suggestion for the test sound good or would you like this as a separate PR? I'm happy either way.