better handling of plugin dir name changes