safer code to get the plugin specification in older environments.