Use path.basename for new filebrowser plugins, fix max client name