fix check if we upload to /Shared

fix for #5126. I don't know what happened in the meantime or why it worked in the past. But with this fix the update of a file in /Shared  should work again.

cc @DeepDiver1975 @felixboehm