Bugfix and More tests for plugin logic

Actually testing for presence of directories now !