Normalizing trailing /. in paths.