Fix bashisms.

These are minor issues... I just run checkbashisms on all shell scripts in the project, and fixed some violations it reported.