Remove bashisms; runs under heirloom-sh as /bin/sh.
References to /tmp related vulns from this decade.