issue #24200: make sure we have an output directory