is_shared() fixes

We can assume that the path is not shared only when the path exist (file or directory) and get_shares() thrown 404 exception.