Require YAML before parsing config files

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