Remove bashisms

There were found using Debian checkbashisms(1)