t/test.sh: use a tmpdir in t/tmp instead of working directly in ./.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>