Change config format to YAML, checking opts is nil