Create log_dir if it does not exist