replace PathString with Pathname for ruby std lib