finally fix the paths for the OCS Share API

Finally fix the paths for the OCS Share API.
This is a work around in the OCS Share API code because at the moment it is not possible to construct always the correct path directly in the sharing code. I will try to fix it directly in the sharing code for OC7

fix: #7673