require 'yaml' before using it

new bundler does not require it internally, so the Gemfile is an error
Merge pull request #87 from coolo/master

fix build in factory