fix removal of temporary test directories