allows the plugin dir to be set in the environ