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

We've been uniformizing in using [[ ... ]] for these tests. (We require bash anyways and [[ ... ]] has fewer weird corner cases.) Otherwise your code looks good.