Check the output_dir is empty or not