Rework automatic directory deletion
Rework automatic directory deletion

Check before deleting that we are allowed to delete
Ensure to not recursively delete directories not under prefix

junovitch/pkg,en90/pkg,skoef/pkg,Open343/pkg,Open343/pkg,skoef/pkg,en90/pkg,khorben/pkg,khorben/pkg,junovitch/pkg,khorben/pkg