t: strip bashism from test scripts

sh does not like identifiers with hyphens in them; replace them with
underscores, and change the she-bang from /bin/bash to /bin/sh.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>