Added the ability to rename directories if the selected directory only has directories in it