Fixed RenameDirectoryCommand.
Fixed bug in selectedFiles