fix detection of system wide mount points
add unit tests
Merge pull request #10181 from owncloud/enc_fix_system_wide_mounts

[encryption] fix system wide mount point detection