Correct bashisms

As reported by http://man.he.net/man1/checkbashisms