make temp dirs if they don't exist for tests