Renames directory correctly