adds $plugin_dir var to pin-widget