Support for searchpath option when restoring plugins

passes the searchpath option to plugin add