require_dependency should allow Pathname, not just String