Adding implementation for renaming directory