properly renaming directory