Update base.rb

Support for yaml files with .yaml extension.