Simplified code in lib/jekyll/plugin.rb