remove Path::Class from path portability check and make code more clear