Fix getPath for storage roots

Needed for sharing filesystem mounts, without this patch sharing a mounted filesystem fails because sharing thinks the file doesn't exist

cc @DeepDiver1975 @schiesbn