require_dependency should allow Pathname-like objects, not just String