Fix: run on Ruby 2.x, path resolution has evolved.
Fix: infinite loop with newer yaml/ruby.
Updated with fork information.