Fix bashisms.

These were found by running checkbashisms on all shell scripts in the
project.
Merge pull request #71 from Sjlver/master

Fix bashisms.