Fixed a problem with widgets not seeing the button in the plugins direct...

...ory.