Fix pathname.