Fix creation of directopries
Merge pull request #3 from tmclaugh/plugin_cleanup_hsmaster

Fix creation of directopries