[encryption] fix rename of shared files

make sure that we get the correct user and path if shared files are moved

fix #6510