Sync pathname_builtin.rb from ruby/ruby
#61
+79
−36
Merged