exec, pexec: set TESTDIR

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