better handling of no specified output_dir
fixup! 0a0a7509