Fix wrong pathname in rename.