Changes binlog_format check to include whether log_bin is set