Cleanup a path with Pathname