Scabrero/fix share delete permissions

I think it is a good practice to set the dir constant with an ending / to avoid adding it all over the code, if necessary.