[PATCH 17/49] dtoc: Allow specifying the base directory for tests