STABLE: Converted to /bin/sh from OpenBSD's ksh to make it far far more portable