Make getPath work for shared files

Changes `getPath` to query the storages individually which allows the shared storage to overwrite the behaviour

cc @DeepDiver1975 @PVince81