Define a public Kernel.Pathname method

In mri pathname methods are added as private instance method and as public class method (singleton method) of Kernel.
Currently Kernel.Pathname throws an error because the private Kernel#Pathname method is tried to access.