Remove bashisms from posting script

With such a simple script, there's no excuse for poor portability. Please file
an issue if it doesn't work on your system/shell.