Require YAML before trying to parse configuration

Optimism doesn't require YAML itself, because it supports multiple
configuration file formats. We picked YAML, so we should require it.