exec/pexec: substitute $TESTDIR into command

It might be better to make this unescaped, but that's trickier.

Signed-off-by: Sage Weil <sage@inktank.com>