Pass char* paths instead of DIR* to batch and interactive.